<template>
  <!-- <el-table :data="tableData" border>
    <el-table-column label="序号" align="center" prop="index" width="70">
      <template slot-scope="scope">
        {{ scope.$index + 1 }}
      </template>
    </el-table-column>
    <el-table-column prop="siteCode" align="center" label="站址编码" width="160" show-overflow-tooltip />
    <el-table-column prop="siteName" align="center" label="站址名称" width="160" show-overflow-tooltip />
    <el-table-column prop="orderCode" align="center" label="采购订单号" width="250" show-overflow-tooltip />
    <el-table-column prop="supplyCode" align="center" label="供应商编码" width="110" show-overflow-tooltip />
    <el-table-column prop="supplyName" align="center" label="供应商名称" width="220" show-overflow-tooltip />
    <el-table-column prop="contractCode" align="center" label="合同编码" width="160" show-overflow-tooltip />
    <el-table-column prop="contractName" align="center" label="合同名称" width="160" show-overflow-tooltip />
    <el-table-column prop="subSpecName" align="center" label="子专业名称" width="130" show-overflow-tooltip />
    <el-table-column prop="pmsMaterialCode" align="center" label="服务编码" width="130" show-overflow-tooltip />
    <el-table-column prop="pmsMaterialName" align="center" label="服务名称" width="200" show-overflow-tooltip />
    <el-table-column prop="formPattern" align="center" label="规格" width="250" show-overflow-tooltip />
    <el-table-column prop="unit" align="center" label="单位" />
    <el-table-column prop="mdseNum" align="center" label="数量" />
    <el-table-column prop="price" align="center" label="不含税单价（元）" width="120" />
    <el-table-column prop="equipSum" align="center" label="不含税总价（元）" width="120" />
    <el-table-column prop="mdseTaxRate" align="center" label="税率（%）" />
    <el-table-column prop="mdseTax" align="center" label="税额（元）" width="90" />
    <el-table-column prop="equipTaxSum" align="center" label="含税总价（元）" width="110" />
  </el-table> -->
</template>

<script>
// import * as Axios from '@/api/settlement'
import { getDropdownData } from '@/api/common'
import { parseParams } from '@/utils'

export default {
  name: 'Employ',
  data() {
    return {
      tableData: [],
      urlParams: {}
    }
  }
  // created() {
  //   this.urlParams = {
  //     ...this.urlParams,
  //     ...parseParams(window.location.hash)
  //   }
  //   this.getList()
  // },
  // methods: {
  //   async getList() {
  //     const { data } = await getDropdownData('SERV_TYPE')
  //     const returnType = this.urlParams.returnType === 'null' ? '' : this.urlParams.returnType
  //     const isPush = this.urlParams.isPush === 'null' ? '' : this.urlParams.isPush
  //     const obj = {
  //       prjId: this.urlParams.prjId,
  //       isPush,
  //       returnType,
  //       bizSeq: ''
  //     }
  //     Axios.getServAuditList(obj).then(res => {
  //       this.tableData = res.data.map(item => {
  //         const str = data.find(it => {
  //           return it.dictId === item.subSpec
  //         })
  //         return {
  //           ...item,
  //           subSpecName: str ? str.dictName : ''
  //         }
  //       })
  //     })
  //   },
  //   shineAskTwo(row, column, cellValue) {
  //     const data = {
  //       num: {
  //         price: 4,
  //         mdseTax: 2,
  //         mdseTaxRate: 2,
  //         equipSum: null,
  //         equipTaxSum: null
  //       }
  //     }
  //     for (const i in data.num) {
  //       if (i === column['property']) {
  //         if (['equipSum', 'equipTaxSum'].includes(i)) {
  //           return (row[i] - 0).toLocaleString('zh')
  //         }
  //         const arr = ['mdseTax', 'mdseTaxRate']
  //         if (arr.includes(column['property'])) {
  //           const value = row[column['property']]
  //           // eslint-disable-next-line eqeqeq
  //           if ((value == null || value == 0) && row.lx1 == 1) {
  //             return ''
  //             // eslint-disable-next-line eqeqeq
  //           } else if (value == null && row.lx1 == 2) {
  //             return '0.00'
  //           } else {
  //             return ((value * 1).toFixed(data.num[column['property']]) - 0).toLocaleString('zh')
  //           }
  //         } else {
  //           return (Number(row[i]).toFixed(data.num[column['property']]) - 0).toLocaleString('zh')
  //         }
  //       }
  //     }
  //     return row[column['property']]
  //   }
  // }
}
</script>

